/**
 * Created by hms on 2020-09-14.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getCompanyList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/companylist',{ params : data});
    },
    editCompany:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/editcompany',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getCompanyInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/companyinfo',{
            params:data
        });
    },
    delCompany:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/delcompany',{
            params:data
        });
    }
}
